package com.zyk.scaffold.core.config;

import com.zyk.scaffold.core.component.PasswordEncoderComponent;
import com.zyk.scaffold.core.config.endpoint.EndpointConfiguration;
import com.zyk.scaffold.core.context.JwtHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import({RestTemplateConfig.class,
        EndpointConfiguration.class,
        MybatisPlusConfig.class,
        RedisComponentConfiguration.class
})
public class BackendServiceConfiguration {

    @Bean
    public PasswordEncoderComponent passwordEncoderComponent(){
        return new PasswordEncoderComponent();
    }

    @Bean
    public JwtHelper jwtHelper(){
        return new JwtHelper();
    }

}
